<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <script src="../../vue.js"></script>
</head>

<body>
  <div id="app">

    <gp13-city v-for="c in citys" :name="c"></gp13-city>


  </div>

  <script type="text/template" id="temp">
    <div>
       <h1>{{name}}</h1>
       <button ></button>
    </div>
  </script>

</body>
<script>

  Vue.component('gp13City', {
    props: ['name'],
    data() {
      return {
      }
    },
    template: "#temp"
  })


  var vm = new Vue({
    el: '#app',
    data: {
      citys: ['北京', '天津', '南京']
    },
    methods: {
    }
  })



</script>

</html>